﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using SMS.Entities;

namespace SMS.Web.Service
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "ISupplierService" in both code and config file together.
    [ServiceContract]
    public interface ISupplierService
    {
        [OperationContract]
        List<Supplier> SearchSupplier(string UserName, string SearchText, out SMSException serviceError);

        [OperationContract]
        int SaveSupplier(string userName, Supplier supplier, out SMSException serviceError);

        [OperationContract]
        Supplier GetCompleteSupplier(string UserName, int Id, out SMSException ServiceErrror);
    }
}
